AddComponentPostInit('stewer',
    ---@param self component_stewer
    function(self)
        local old_StartCooking = self.StartCooking
        function self:StartCooking(doer, ...)
            local old_cooktimemult = nil
            if doer and doer.prefab == 'zs_avatar' then
                if self.inst.prefab == 'cookpot' then
                    old_cooktimemult = self.cooktimemult
                    self.cooktimemult = self.cooktimemult * .9 --普通锅加速10%
                elseif self.inst.prefab == 'archive_cookpot' then
                    old_cooktimemult = self.cooktimemult
                    self.cooktimemult = self.cooktimemult * .9 --档案馆锅加速10%
                elseif self.inst.prefab == "portablecookpot_item" then
                    old_cooktimemult = self.cooktimemult
                    self.cooktimemult = self.cooktimemult * .65 --便携锅加速35%
                elseif self.inst.prefab == 'medal_cookpot' then
                    old_cooktimemult = self.cooktimemult
                    self.cooktimemult = self.cooktimemult * .5 --能力勋章锅加速50%
                end
            end
            local res = old_StartCooking ~= nil and { old_StartCooking(self, doer, ...) } or {}
            if old_cooktimemult then
                self.cooktimemult = old_cooktimemult
            end
            return unpack(res)
        end
    end)
